namespace NetMVC.Web.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class DramaCategoryParent : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.DramaCategories", "parent_id", c => c.Int());
            CreateIndex("dbo.DramaCategories", "parent_id");
            AddForeignKey("dbo.DramaCategories", "parent_id", "dbo.DramaCategories", "id");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.DramaCategories", "parent_id", "dbo.DramaCategories");
            DropIndex("dbo.DramaCategories", new[] { "parent_id" });
            DropColumn("dbo.DramaCategories", "parent_id");
        }
    }
}
